{extend name="public:_base" /}
{block name="js"}
{include file="public/_validform"}
<!-- 配置文件 -->
<script type="text/javascript" src="__STATIC__/admin/hui/lib/ueditor/1.4.3/ueditor.config.js"></script>
<!-- 编辑器源码文件 -->
<script type="text/javascript" src="__STATIC__/admin/hui/lib/ueditor/1.4.3/ueditor.all.js"></script>
<script type="text/javascript">
    var ue = UE.getEditor('editor');
</script>
{/block}
{block name="main"}
<article class="page-container">
    <form class="form form-horizontal" action="{:url('publicity/save')}" id="form" method="post">
        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-3">名称：</label>
            <div class="formControls col-xs-9 col-sm-9">
                <input type="text" class="input-text" value="{$data.name ?? ''}" placeholder="" name="name">
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-3">详细内容：</label>
            <div class="formControls col-xs-9 col-sm-9">
                <script id="editor" type="text/plain" name="value" style="width:100%;height:400px;">{$data.value|default=''|html_entity_decode ?? ''}</script>
            </div>
        </div>


        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-3">搜索引擎优化设置(seo)</label>

        </div>

        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-3">页面Title：</label>
            <div class="formControls col-xs-9 col-sm-9">
                <input type="text" class="input-text" value="{$data.title ?? ''}" placeholder="" id="articletitle2"
                       name="title">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-3">关键词：</label>
            <div class="formControls col-xs-9 col-sm-9">
                <input type="text" class="input-text" value="{$data.keywords ?? ''}" placeholder="" id="keywords"
                       name="keywords">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-3">简短描述：</label>
            <div class="formControls col-xs-9 col-sm-9">
                <textarea name="description" cols="" rows="" class="textarea" placeholder="说点什么...最少输入10个字符" onKeyUp="$.Huitextarealength(this,200)">{$data.description ?? ''}</textarea>
            </div>
        </div>
        <div class="row cl">
            <div class="col-xs-6 col-sm-6 col-xs-offset-4 col-sm-offset-2">
                <input name="id" value="{$data.id ?? ''}" type="hidden"/>
                <input name="cid" value="{$cid ?? ''}" type="hidden"/>
                <input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
                <button onClick="layer_close();" class="btn btn-default radius" type="button">
                    &nbsp;&nbsp;取消&nbsp;&nbsp;
                </button>
            </div>
        </div>

    </form>
</article>
{/block}